package master.userInterface;

import javax.swing.*;


public class GateComboBox extends JComboBox {
	final GateIOPanel [] p;//the gateIOPanels to show on selection
	public GateComboBox(GateIOPanel ... panels){
		this.p = panels;
		for(GateIOPanel pan : p){
			this.addItem(pan.getGateClassName());
		}
	}
	public GateIOPanel [] getPopupPanels(){
		return p;
	}
}
